# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy


class DoumiwebItem(scrapy.Item):
    c_url = scrapy.Field()  # 当前url
    content_url = scrapy.Field()  # 内容url
    title = scrapy.Field()  # 标题
    working_place = scrapy.Field()  # 工作地点
    working_time = scrapy.Field()  # 工作时间
    work_type = scrapy.Field()  # 工作类型
    need_num = scrapy.Field()  # 招聘人数
    settlement_method = scrapy.Field()  # 结算方式
    salary = scrapy.Field()  # 薪资
    details = scrapy.Field()  # 详情
    salary_details = scrapy.Field()  # 薪资详情
    working_place_details = scrapy.Field()  # 工作地点详情
    working_time_details = scrapy.Field()  # 工作时间详情


class CompanyItem(scrapy.Item):
    # 名称
    name = scrapy.Field()
    # 图标
    logo = scrapy.Field()
    # 在招职位
    job_num = scrapy.Field()
    # 消息回复率
    msg_reply = scrapy.Field()
    # 处理速度
    deal_rate = scrapy.Field()
    # 评价
    evalute_tate = scrapy.Field()
    # 企业类型
    type = scrapy.Field()
    # 经营状态
    state = scrapy.Field()
    # 注册资本
    money = scrapy.Field()
    # 行业类型
    industry = scrapy.Field()
    # 成立日期
    birthday = scrapy.Field()
    # 注册地址
    address = scrapy.Field()
    # 登记机关
    address_dj = scrapy.Field()
    # 统一社会信用代码
    credit_no = scrapy.Field()
    # 组织机构代码
    organization_no = scrapy.Field()
    # 经营范围
    scope = scrapy.Field()


class DataItem(scrapy.Item):
    task = scrapy.Field()
    company = scrapy.Field()
